import request from './request'

// 按需导出api

// 获取首页api
export const GetHomeData = () => request.get('/index/index')

// 获取搜索框历史记录数据   搜索窗口数据
export const GetSearchHistory = () => request.get('/search/index')
//搜索框商品搜索
export const GetGoodsList = (params) => request.get('/goods/list',{params})
// 实时搜索功能
export const GetTimeData=(params) =>request.get('/search/helper',{params})

//删除历史记录
export  const  ClearHistory=() =>request.post('/search/clearhistory')